#include "unknowMode.h"
#include <string.h> /* strlen */
#include <arpa/inet.h> /* for ntohs,htons */
/**
 * author: Haim Tsolker.
 * 
 * recognize unknow mode
 * mark it as error
 */
msg_p NonSupportModeHandler(msg_p data)
{
	char modeNotSupport[]="Mode not supported";
	data->msgID = ntohs(errRequest);
	data->msgNumber = ntohs(notDef);
	strncpy(data->data,modeNotSupport,strlen(modeNotSupport)+1);
	data->size=strlen(modeNotSupport)+1;
	return data;
}
